package com.snailhd.framework.common.entity;

import lombok.Getter;

/**
 * @author hd
 * @date 2020-01-04 16:21
 */

public enum ResultCodeEnums implements ResultCode {

    /** 成功 */
    SUCCESS("成功"),

    FAIL("失败"),

    /** 处理异常 */
    EXCEPTION("处理异常"),

    /** 请登录 */
    LOGIN("请登录");

    private String msg;

    ResultCodeEnums(String msg) {
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return this.name();
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
